using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Tool.BaseClass;
using Tool.Model;
using Tool.Utilty;

namespace Tool
{
	public class Step1 : UserControl
	{
		[CompilerGenerated]
		private sealed class Class2
		{
			public int Id;

			public bool method_0(GClass32 gclass32_0)
			{
				return gclass32_0.UrlId.Equals(this.Id);
			}
		}

		[CompilerGenerated]
		private sealed class Class3
		{
			public int id;

			public string url;

			public bool method_0(GClass32 gclass32_0)
			{
				return !gclass32_0.UrlId.Equals(this.id) && gclass32_0.UrlHref.Equals(this.url);
			}

			public bool method_1(GClass32 gclass32_0)
			{
				return gclass32_0.UrlHref.Equals(this.url);
			}
		}

		[CompilerGenerated]
		private sealed class Class4
		{
			public int Id;

			public string dir;

			public string filename;

			public bool method_0(GClass32 gclass32_0)
			{
				return gclass32_0.UrlFilePath.Equals(this.dir) && gclass32_0.UrlFileName.Equals(this.filename) && !gclass32_0.UrlId.Equals(this.Id);
			}

			public bool method_1(GClass32 gclass32_0)
			{
				return gclass32_0.UrlFilePath.Equals(this.dir) && gclass32_0.UrlFileName.Equals(this.filename);
			}
		}

		[CompilerGenerated]
		private sealed class Class5
		{
			public int Id;

			public bool method_0(GClass32 gclass32_0)
			{
				return gclass32_0.UrlId.Equals(this.Id);
			}
		}

		[CompilerGenerated]
		private sealed class Class6
		{
			public string dir;

			public string name;

			public string ext;

			public int i;

			public bool method_0(GClass32 gclass32_0)
			{
				return gclass32_0.UrlFilePath.ToLower() == this.dir && gclass32_0.UrlFileName.ToLower() == this.name.ToLower() + ((this.i > 0) ? ("_" + this.i.ToString()) : "") + this.ext;
			}
		}

		[CompilerGenerated]
		private sealed class Class7
		{
			public int id;

			public bool method_0(GClass32 gclass32_0)
			{
				return gclass32_0.UrlId.Equals(this.id);
			}
		}

		public GClass26.GEnum4 _siteType = GClass26.GEnum4.Computer;

		private string root = Application.StartupPath;

		private System.ComponentModel.IContainer components = null;

		private GroupBox groupBox1;

		private DataGridView gv_list;

		private Button bt_save;

		private TextBox tb_filename;

		private TextBox tb_dir;

		private Label label3;

		private Label label2;

		private TextBox tb_url;

		private Label label1;

		private Button bt_next;

		private Button bt_clear;

		private Label lb_msg;

		private Label lb_datamsg;

		private DataGridViewTextBoxColumn ID;

		private DataGridViewTextBoxColumn UrlHref;

		private DataGridViewTextBoxColumn UrlFilePath;

		private DataGridViewTextBoxColumn UrlFileName;

		public Step1(GClass26.GEnum4 siteType)
		{
			this._siteType = siteType;
			this.InitializeComponent();
			this.gv_list.AutoGenerateColumns = false;
			switch (this._siteType)
			{
			case GClass26.GEnum4.Computer:
				this.groupBox1.Text = "第一步：添加网址(下载普通网站)";
				break;
			case GClass26.GEnum4.Mobile:
				this.groupBox1.Text = "第一步：添加网址(下载手机网站)";
				break;
			default:
				this.groupBox1.Text = "第一步：添加网址";
				break;
			}
		}

		private void Step1_Load(object sender, EventArgs e)
		{
			GClass28.smethod_1();
			this.tb_dir.Text = "/";
			this.tb_filename.Text = "default.html";
			this.tb_url.KeyDown += new KeyEventHandler(this.tb_filename_KeyDown);
			this.tb_dir.KeyDown += new KeyEventHandler(this.tb_filename_KeyDown);
			this.tb_filename.KeyDown += new KeyEventHandler(this.tb_filename_KeyDown);
			this.tb_url.GotFocus += new EventHandler(this.tb_url_LostFocus);
			this.tb_dir.GotFocus += new EventHandler(this.tb_dir_LostFocus);
			this.tb_filename.GotFocus += new EventHandler(this.tb_filename_LostFocus);
			this.tb_url.LostFocus += new EventHandler(this.tb_url_LostFocus);
			this.tb_dir.LostFocus += new EventHandler(this.tb_dir_LostFocus);
			this.tb_filename.LostFocus += new EventHandler(this.tb_filename_LostFocus);
			this.method_0();
		}

		private void method_0()
		{
			List<GClass32> list = GClass28.smethod_5();
			this.gv_list.DataSource = new System.ComponentModel.BindingList<GClass32>(list);
			this.lb_datamsg.Text = "共“" + list.Count + "”项";
			this.bt_clear.Visible = (this.bt_next.Visible = (list.Count > 0));
		}

		private void bt_save_Click(object sender, EventArgs e)
		{
			Predicate<GClass32> predicate = null;
			Step1.Class2 @class = new Step1.Class2();
			@class.Id = ((this.gv_list.Tag == null) ? 0 : ((int)this.gv_list.Tag));
			string text = this.tb_url.Text.Trim();
			string text2 = this.tb_dir.Text.Trim();
			string text3 = this.tb_filename.Text.Trim();
			if (this.method_2(text, new Action<string, bool>(this.method_1)) && this.method_3(text2, new Action<string, bool>(this.method_1)) && this.method_4(text3, new Action<string, bool>(this.method_1)))
			{
				GClass32 gClass = new GClass32
				{
					UrlId = @class.Id,
					UrlHref = text,
					UrlFilePath = text2,
					UrlFileName = text3,
					UrlEncoding = ""
				};
				int num = 0;
				List<GClass32> list = GClass28.smethod_5();
				if (@class.Id > 0)
				{
					List<GClass32> arg_11C_0 = list;
					if (predicate == null)
					{
						predicate = new Predicate<GClass32>(@class.method_0);
					}
					GClass32 gClass2 = arg_11C_0.Find(predicate);
					if (!(gClass2.UrlHref != gClass.UrlHref))
					{
						gClass2.UrlEncoding = gClass2.UrlEncoding;
					}
					else
					{
						gClass2.UrlEncoding = "";
					}
					gClass2.UrlHref = gClass.UrlHref;
					gClass2.UrlFilePath = gClass.UrlFilePath;
					gClass2.UrlFileName = gClass.UrlFileName;
					num = @class.Id;
					this.method_0();
					this.method_8(0);
					this.method_1("更新成功", true);
					if (gClass2.UrlEncoding == "")
					{
						GClass52.smethod_0(num);
					}
				}
				else
				{
					int num2 = 1;
					foreach (GClass32 current in list)
					{
						if (current.UrlId > num2)
						{
							num2 = current.UrlId;
						}
					}
					gClass.UrlId = num2;
					list.Add(gClass);
					this.method_0();
					this.method_8(0);
					this.lb_msg.Text = "添加成功";
					this.lb_msg.ForeColor = System.Drawing.Color.Green;
					GClass52.smethod_0(num2);
				}
				if (num > 0)
				{
					foreach (DataGridViewRow dataGridViewRow in ((IEnumerable)this.gv_list.Rows))
					{
						if (int.Parse(dataGridViewRow.Cells["ID"].Value.ToString()) == num)
						{
							dataGridViewRow.Selected = true;
							break;
						}
					}
				}
			}
		}

		private void bt_clear_Click(object sender, EventArgs e)
		{
			if (MessageBox.Show("确定清空所有数据吗？", "对话框", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
			{
				List<GClass32> list = GClass28.smethod_5();
				list.Clear();
				this.method_0();
			}
		}

		private void bt_next_Click(object sender, EventArgs e)
		{
			List<GClass32> list = GClass28.smethod_5();
			if (list != null && list.Count > 0)
			{
				foreach (GClass32 current in list)
				{
					if (string.IsNullOrEmpty(current.UrlEncoding))
					{
						GClass52.smethod_0(current.UrlId);
					}
				}
				base.Controls.Clear();
				base.Controls.Add(new Step2(this._siteType));
			}
			else
			{
				MessageBox.Show("至少输入一个网址.");
			}
		}

		private void tb_filename_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Return)
			{
				this.bt_save_Click(sender, e);
			}
		}

		private void tb_url_LostFocus(object sender, EventArgs e)
		{
			string text = this.tb_url.Text.Trim();
			if (this.method_2(text, new Action<string, bool>(this.method_1)))
			{
				string string_ = (this.root + "/" + new System.Uri(text).Host.ToString()).Replace("/", "\\");
				this.method_1(string_, true);
			}
		}

		private void tb_dir_LostFocus(object sender, EventArgs e)
		{
			string text = this.tb_url.Text.Trim();
			string text2 = this.tb_dir.Text.Trim();
			if (!text2.StartsWith("/"))
			{
				text2 = "/" + text2;
			}
			if (!text2.EndsWith("/"))
			{
				text2 += "/";
			}
			this.tb_dir.Text = text2;
			if (this.method_2(text, new Action<string, bool>(this.method_1)) && this.method_3(text2, new Action<string, bool>(this.method_1)))
			{
				string string_ = (this.root + "/" + new System.Uri(text).Host.ToString() + text2).Replace("/", "\\");
				this.method_1(string_, true);
			}
		}

		private void tb_filename_LostFocus(object sender, EventArgs e)
		{
			string text = this.tb_url.Text.Trim();
			string text2 = this.tb_dir.Text.Trim();
			string text3 = this.tb_filename.Text.Trim();
			if (this.method_2(text, new Action<string, bool>(this.method_1)) && this.method_3(text2, new Action<string, bool>(this.method_1)) && this.method_4(text3, new Action<string, bool>(this.method_1)))
			{
				string string_ = (this.root + "/" + new System.Uri(text).Host.ToString() + text2).Replace("/", "\\") + text3;
				this.method_1(string_, true);
			}
		}

		private void tb_url_Leave(object sender, EventArgs e)
		{
			string text = this.tb_url.Text.Trim();
			if (text != "")
			{
				if (!text.ToLower().StartsWith("http://") && !text.ToLower().StartsWith("https://"))
				{
					this.tb_url.Text = "http://" + text;
				}
				if (this.tb_filename.Text == "")
				{
					System.Text.RegularExpressions.Match match = new System.Text.RegularExpressions.Regex("(?<=/)([0-9a-zA-Z_-]+).(\\w+)$").Match(text);
					if (match.Length <= 0)
					{
						match = new System.Text.RegularExpressions.Regex("(?<=/)([0-9a-zA-Z_-]+)$").Match(text);
						if (match.Length > 0)
						{
							this.tb_filename.Text = match.Value + ".html";
						}
					}
					else
					{
						this.tb_filename.Text = match.Value.Split(new char[]
						{
							'.'
						})[0] + ".html";
					}
				}
				if (this.tb_filename.Text.Trim() == "")
				{
					Step1.Class6 @class = new Step1.Class6();
					List<GClass32> list = GClass28.smethod_5();
					@class.dir = this.tb_dir.Text.Trim().ToLower();
					@class.name = "default";
					@class.ext = ".html";
					@class.i = 0;
					while (list.Find(new Predicate<GClass32>(@class.method_0)) != null)
					{
						@class.i++;
					}
					this.tb_filename.Text = @class.name + ((@class.i > 0) ? ("_" + @class.i.ToString()) : "") + @class.ext;
				}
			}
		}

		private void tb_filename_Leave(object sender, EventArgs e)
		{
			string text = this.tb_filename.Text.Trim();
			if (text != "" && !text.ToLower().EndsWith(".html"))
			{
				if (!text.ToLower().EndsWith("."))
				{
					this.tb_filename.Text = this.tb_filename.Text.Trim() + ".html";
				}
				else
				{
					this.tb_filename.Text = this.tb_filename.Text.Trim() + "html";
				}
			}
		}

		private void method_1(string string_0, bool bool_0)
		{
			this.lb_msg.Text = string_0;
			this.lb_msg.ForeColor = (bool_0 ? System.Drawing.Color.Blue : System.Drawing.Color.Red);
		}

		private bool method_2(string string_0, Action<string, bool> action_0)
		{
			Step1.Class3 @class = new Step1.Class3();
			@class.url = string_0;
			List<GClass32> list = GClass28.smethod_5();
			@class.id = ((this.gv_list.Tag == null) ? 0 : ((int)this.gv_list.Tag));
			bool result = false;
			if (!(@class.url == ""))
			{
				if (@class.url.StartsWith("http://") || @class.url.StartsWith("https://"))
				{
					if (@class.id <= 0 || !list.Exists(new Predicate<GClass32>(@class.method_0)))
					{
						if (@class.id > 0 || !list.Exists(new Predicate<GClass32>(@class.method_1)))
						{
							result = true;
						}
						else
						{
							this.tb_url.Select();
							action_0("网址已存在", false);
						}
					}
					else
					{
						this.tb_url.Select();
						action_0("网址已存在", false);
					}
				}
				else
				{
					this.tb_url.Focus();
					action_0("网址必须以“http://”或“https://”开头", false);
				}
			}
			else
			{
				this.tb_url.Focus();
				action_0("请输入网址", false);
			}
			return result;
		}

		private bool method_3(string string_0, Action<string, bool> action_0)
		{
			bool result = false;
			if (!(string_0 == ""))
			{
				if (GClass0.smethod_8(string_0))
				{
					result = true;
				}
				else
				{
					this.tb_dir.Select();
					action_0("输入目录不正确,格式以“/”开头或结尾，如：“/”或“/DirName/”", false);
				}
			}
			else
			{
				this.tb_dir.Focus();
				action_0("请输入目录", false);
			}
			return result;
		}

		private bool method_4(string string_0, Action<string, bool> action_0)
		{
			Step1.Class4 @class = new Step1.Class4();
			@class.filename = string_0;
			bool result = false;
			@class.Id = ((this.gv_list.Tag == null) ? 0 : ((int)this.gv_list.Tag));
			@class.dir = this.tb_dir.Text.Trim();
			List<GClass32> list = GClass28.smethod_5();
			if (!(@class.filename == ""))
			{
				if (new System.Text.RegularExpressions.Regex("^.*\\..*$").Match(@class.filename).Length > 0 && GClass0.smethod_9(@class.filename))
				{
					if (@class.Id <= 0 || !list.Exists(new Predicate<GClass32>(@class.method_0)))
					{
						if (@class.Id <= 0 && list.Exists(new Predicate<GClass32>(@class.method_1)))
						{
							this.tb_filename.Select();
							action_0("文件名已存在", false);
						}
						else
						{
							result = true;
						}
					}
					else
					{
						this.tb_filename.Select();
						action_0("文件名已存在", false);
					}
				}
				else
				{
					this.tb_filename.Select();
					action_0("输入文件名不正确,格式如：“FileName.html”", false);
				}
			}
			else
			{
				this.tb_filename.Focus();
				action_0("请输入文件名", false);
			}
			return result;
		}

		private void tb_url_MouseHover(object sender, EventArgs e)
		{
			GClass54.Object.method_0(sender, "网址必须以“http://”或“https://”开头");
		}

		private void tb_dir_MouseHover(object sender, EventArgs e)
		{
			GClass54.Object.method_0(sender, "相对于根目录，格式以“/”开头或结尾，如：“/”或“/dirname/”\r\n备注：根目录位置为当前软件位置/下载网站域名");
		}

		private void tb_filename_MouseHover(object sender, EventArgs e)
		{
			GClass54.Object.method_0(sender, "格式如：default.html");
		}

		private void gv_list_MouseHover(object sender, EventArgs e)
		{
			GClass54.Object.method_0(sender, "1、支持批量下载，即可以添加多个网址到这表格。\r\n2、这里的文件目录是当前HTML存放目录，非HTML文件(js/css等等)存放目录在“系统设置”里面修改。\r\n备注：右键数据行以进行编辑或删除数据；双击数据行也可以编辑数据。");
		}

		private void gv_list_MouseDown(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Right)
			{
				Control control = new Control();
				System.Drawing.Point pt = new System.Drawing.Point(e.X, e.Y);
				control.GetChildAtPoint(pt);
				if (this.gv_list.HitTest(e.X, e.Y).RowIndex >= 0 && this.gv_list.HitTest(e.X, e.Y).ColumnIndex >= 0)
				{
					this.gv_list.CurrentCell = this.gv_list.Rows[this.gv_list.HitTest(e.X, e.Y).RowIndex].Cells[this.gv_list.HitTest(e.X, e.Y).ColumnIndex];
					ContextMenu contextMenu = new ContextMenu();
					MenuItem item = new MenuItem("-");
					MenuItem menuItem = new MenuItem("添加");
					MenuItem menuItem2 = new MenuItem("编辑");
					MenuItem menuItem3 = new MenuItem("删除");
					menuItem.Click += new EventHandler(this.method_5);
					menuItem2.Click += new EventHandler(this.method_6);
					menuItem3.Click += new EventHandler(this.method_7);
					contextMenu.MenuItems.Add(menuItem);
					contextMenu.MenuItems.Add(item);
					contextMenu.MenuItems.Add(menuItem2);
					contextMenu.MenuItems.Add(item);
					contextMenu.MenuItems.Add(menuItem3);
					this.gv_list.ContextMenu = contextMenu;
					contextMenu.Show(this.gv_list, new System.Drawing.Point(e.X + 10, e.Y));
				}
			}
		}

		private void method_5(object sender, EventArgs e)
		{
			this.method_8(0);
		}

		private void method_6(object sender, EventArgs e)
		{
			int int_ = int.Parse(this.gv_list.SelectedRows[0].Cells["ID"].Value.ToString());
			this.method_8(int_);
			this.tb_url.Focus();
		}

		private void method_7(object sender, EventArgs e)
		{
			if (MessageBox.Show("确定删除选中行吗？", "对话框", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
			{
				Step1.Class7 @class = new Step1.Class7();
				List<GClass32> list = GClass28.smethod_5();
				@class.id = int.Parse(this.gv_list.SelectedRows[0].Cells["ID"].Value.ToString());
				GClass32 item = list.Find(new Predicate<GClass32>(@class.method_0));
				list.Remove(item);
				this.method_0();
				this.method_8(0);
			}
		}

		private void gv_list_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
		{
			this.method_6(sender, e);
		}

		private void method_8(int int_0)
		{
			Predicate<GClass32> predicate = null;
			Step1.Class5 @class = new Step1.Class5();
			@class.Id = int_0;
			this.gv_list.Tag = @class.Id;
			if (@class.Id <= 0)
			{
				this.gv_list.Tag = 0;
				this.bt_save.Text = "添加";
				this.tb_url.Text = (this.tb_filename.Text = "");
			}
			else
			{
				this.gv_list.Tag = @class.Id;
				this.bt_save.Text = "更新";
				List<GClass32> list = GClass28.smethod_5();
				List<GClass32> arg_B4_0 = list;
				if (predicate == null)
				{
					predicate = new Predicate<GClass32>(@class.method_0);
				}
				GClass32 gClass = arg_B4_0.Find(predicate);
				this.tb_url.Text = gClass.UrlHref;
				this.tb_dir.Text = gClass.UrlFilePath;
				this.tb_filename.Text = gClass.UrlFileName;
			}
		}

		//protected override void vmethod_0(bool bool_0)
		//{
		//	if (bool_0 && this.components != null)
		//	{
		//		this.components.Dispose();
		//	}
		//	base.Dispose(bool_0);
		//}

		private void InitializeComponent()
		{
			this.groupBox1 = new GroupBox();
			this.lb_datamsg = new Label();
			this.lb_msg = new Label();
			this.bt_next = new Button();
			this.bt_clear = new Button();
			this.bt_save = new Button();
			this.tb_filename = new TextBox();
			this.tb_dir = new TextBox();
			this.label3 = new Label();
			this.label2 = new Label();
			this.tb_url = new TextBox();
			this.label1 = new Label();
			this.gv_list = new DataGridView();
			this.ID = new DataGridViewTextBoxColumn();
			this.UrlHref = new DataGridViewTextBoxColumn();
			this.UrlFilePath = new DataGridViewTextBoxColumn();
			this.UrlFileName = new DataGridViewTextBoxColumn();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.gv_list).BeginInit();
			base.SuspendLayout();
			this.groupBox1.Controls.Add(this.lb_datamsg);
			this.groupBox1.Controls.Add(this.lb_msg);
			this.groupBox1.Controls.Add(this.bt_next);
			this.groupBox1.Controls.Add(this.bt_clear);
			this.groupBox1.Controls.Add(this.bt_save);
			this.groupBox1.Controls.Add(this.tb_filename);
			this.groupBox1.Controls.Add(this.tb_dir);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.tb_url);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.gv_list);
			this.groupBox1.Location = new System.Drawing.Point(20, 20);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(632, 400);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "第一步：添加网址";
			this.lb_datamsg.AutoSize = true;
			this.lb_datamsg.Location = new System.Drawing.Point(7, 340);
			this.lb_datamsg.Name = "lb_datamsg";
			this.lb_datamsg.Size = new System.Drawing.Size(0, 12);
			this.lb_datamsg.TabIndex = 8;
			this.lb_msg.AutoSize = true;
			this.lb_msg.ForeColor = System.Drawing.Color.Red;
			this.lb_msg.Location = new System.Drawing.Point(80, 88);
			this.lb_msg.Name = "lb_msg";
			this.lb_msg.Size = new System.Drawing.Size(0, 12);
			this.lb_msg.TabIndex = 7;
			this.bt_next.Location = new System.Drawing.Point(468, 365);
			this.bt_next.Name = "bt_next";
			this.bt_next.Size = new System.Drawing.Size(140, 23);
			this.bt_next.TabIndex = 0;
			this.bt_next.Text = "转到下一步";
			this.bt_next.UseVisualStyleBackColor = true;
			this.bt_next.Click += new EventHandler(this.bt_next_Click);
			this.bt_clear.Location = new System.Drawing.Point(23, 365);
			this.bt_clear.Name = "bt_clear";
			this.bt_clear.Size = new System.Drawing.Size(140, 23);
			this.bt_clear.TabIndex = 0;
			this.bt_clear.Text = "清空网址";
			this.bt_clear.UseVisualStyleBackColor = true;
			this.bt_clear.Click += new EventHandler(this.bt_clear_Click);
			this.bt_save.Location = new System.Drawing.Point(523, 60);
			this.bt_save.Name = "bt_save";
			this.bt_save.Size = new System.Drawing.Size(75, 23);
			this.bt_save.TabIndex = 4;
			this.bt_save.Text = "添加";
			this.bt_save.UseVisualStyleBackColor = true;
			this.bt_save.Click += new EventHandler(this.bt_save_Click);
			this.tb_filename.Location = new System.Drawing.Point(337, 60);
			this.tb_filename.Name = "tb_filename";
			this.tb_filename.Size = new System.Drawing.Size(180, 21);
			this.tb_filename.TabIndex = 3;
			this.tb_filename.Leave += new EventHandler(this.tb_filename_Leave);
			this.tb_filename.MouseHover += new EventHandler(this.tb_filename_MouseHover);
			this.tb_dir.Location = new System.Drawing.Point(80, 60);
			this.tb_dir.Name = "tb_dir";
			this.tb_dir.Size = new System.Drawing.Size(180, 21);
			this.tb_dir.TabIndex = 2;
			this.tb_dir.MouseHover += new EventHandler(this.tb_dir_MouseHover);
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(266, 67);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(65, 12);
			this.label3.TabIndex = 3;
			this.label3.Text = "文件名称：";
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(9, 67);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(65, 12);
			this.label2.TabIndex = 3;
			this.label2.Text = "相对路径：";
			this.tb_url.Location = new System.Drawing.Point(80, 33);
			this.tb_url.Name = "tb_url";
			this.tb_url.Size = new System.Drawing.Size(518, 21);
			this.tb_url.TabIndex = 1;
			this.tb_url.Leave += new EventHandler(this.tb_url_Leave);
			this.tb_url.MouseHover += new EventHandler(this.tb_url_MouseHover);
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(9, 36);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(65, 12);
			this.label1.TabIndex = 1;
			this.label1.Text = "输入网址：";
			this.gv_list.AllowUserToAddRows = false;
			this.gv_list.BackgroundColor = System.Drawing.Color.White;
			this.gv_list.BorderStyle = BorderStyle.None;
			this.gv_list.CellBorderStyle = DataGridViewCellBorderStyle.Raised;
			this.gv_list.ClipboardCopyMode = DataGridViewClipboardCopyMode.Disable;
			this.gv_list.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.gv_list.Columns.AddRange(new DataGridViewColumn[]
			{
				this.ID,
				this.UrlHref,
				this.UrlFilePath,
				this.UrlFileName
			});
			this.gv_list.GridColor = System.Drawing.Color.Gray;
			this.gv_list.Location = new System.Drawing.Point(7, 111);
			this.gv_list.MultiSelect = false;
			this.gv_list.Name = "gv_list";
			this.gv_list.ReadOnly = true;
			this.gv_list.RowHeadersVisible = false;
			this.gv_list.RowTemplate.Height = 23;
			this.gv_list.RowTemplate.Resizable = DataGridViewTriState.False;
			this.gv_list.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.gv_list.Size = new System.Drawing.Size(619, 222);
			this.gv_list.TabIndex = 0;
			this.gv_list.CellDoubleClick += new DataGridViewCellEventHandler(this.gv_list_CellDoubleClick);
			this.gv_list.MouseDown += new MouseEventHandler(this.gv_list_MouseDown);
			this.gv_list.MouseHover += new EventHandler(this.gv_list_MouseHover);
			this.ID.DataPropertyName = "UrlId";
			this.ID.HeaderText = "ID";
			this.ID.Name = "ID";
			this.ID.ReadOnly = true;
			this.ID.Visible = false;
			this.UrlHref.DataPropertyName = "UrlHref";
			this.UrlHref.HeaderText = "网址";
			this.UrlHref.MinimumWidth = 100;
			this.UrlHref.Name = "UrlHref";
			this.UrlHref.ReadOnly = true;
			this.UrlHref.Width = 402;
			this.UrlFilePath.DataPropertyName = "UrlFilePath";
			this.UrlFilePath.HeaderText = "文件目录";
			this.UrlFilePath.Name = "UrlFilePath";
			this.UrlFilePath.ReadOnly = true;
			this.UrlFileName.DataPropertyName = "UrlFileName";
			this.UrlFileName.HeaderText = "文件名称";
			this.UrlFileName.Name = "UrlFileName";
			this.UrlFileName.ReadOnly = true;
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.Controls.Add(this.groupBox1);
			base.Name = "Step1";
			base.Padding = new Padding(17);
			base.Size = new System.Drawing.Size(672, 440);
			base.Load += new EventHandler(this.Step1_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.gv_list).EndInit();
			base.ResumeLayout(false);
		}
	}
}
